// 导入vuex
import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

// 导入仓库模块
import home from '@/store/home'
import search from '@/store/search'
import detail from '@/store/detail'
import shopcart from '@/store/shopcart'
import user from '@/store/user'
import trade from '@/store/trade'

// 导出仓库
export default new Vuex.Store({
  // 模块化开发
  modules:{
    home,
    search,
    detail,
    shopcart,
    user,
    trade
  }
})